import request from '@/utils/request'

// 获取blob文件流
export function getBlobFile(url, parameter, method) {
  return request({
    url: url,
    method: method || 'post',
    data: method !== 'get' ? parameter : null,
    params: method === 'get' ? parameter : null,
    responseType: 'blob'
  })
}
// 上传文件接口
export function fileUpload(data) {
  return request({
    url: '/resource/oss/upload',
    method: 'post',
    data
  })
}